package com.college.products.mapper;

import com.college.common.pojo.ao.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order order);

    int insertSelective(Order order);

    Order selectByPrimaryKey(Long id);

    List<Order> getMyOrder(Long userId);

    List<Order> getAllOrder(int begin, int nums);

    List<Order> getOrderByNumber(String searchValue, int begin, int nums);

    int countAllOrder();


    List<Order> findOrderByIdleIdList(List<Long> idleIdList);

    int updateByPrimaryKeySelective(Order order);

    int updateByPrimaryKey(Order order);
}